package com.uduemc.biso.core.feign.fallback;

import org.springframework.stereotype.Component;

import com.uduemc.biso.core.extities.center.SysRole;
import com.uduemc.biso.core.feign.SysRoleFeign;
import com.uduemc.biso.core.utils.RestResult;

import feign.hystrix.FallbackFactory;

@Component
public class SysRoleFeignFallback implements FallbackFactory<SysRoleFeign> {

	@Override
	public SysRoleFeign create(Throwable cause) {
		return new SysRoleFeign() {

			@Override
			public RestResult updateByIdSelective(SysRole sysRole) {
				return null;
			}

			@Override
			public RestResult updateById(SysRole sysRole) {
				return null;
			}

			@Override
			public RestResult insertSelective(SysRole sysRole) {
				return null;
			}

			@Override
			public RestResult insert(SysRole sysRole) {
				return null;
			}

			@Override
			public RestResult findOne(long id) {
				return null;
			}

			@Override
			public RestResult findAll() {
				return null;
			}

			@Override
			public RestResult deleteById(long id) {
				return null;
			}
		};
	}

}
